package de.java.hsrm.model;

public class SongVO {
	
	private String title;
	private String album;
	private int length;
	private String interpret;

	public SongVO(Builder b) {
		this.title = b.title;
		this.album = b.album;
		this.length = b.length;
		this.interpret = b.interpret;
		
	}
	
	public static class Builder{
		
		private String interpret;
		private int length;
		private String album;
		private String title;
		private int reader;
		
		public Builder(int reader){
			this.reader = reader;
		}
		public Builder hasTitle(String title){
			this.title = title; return this;
		}
		public Builder belongsToAlbum(String album){
			this.album = album; return this;
		}
		public Builder isWrittenBy(String interpret){
			this.interpret = interpret; return this;
		}
		public Builder hasLength(int length){
			this.length = length; return this;
		}
		public SongVO build(){
			return new SongVO(this);
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public String getInterpret() {
		return interpret;
	}

	public void setInterpret(String interpret) {
		this.interpret = interpret;
	}


}

